package main

import "fmt"

type Books struct {
	title   string
	author  string
	subject string
	book_id int
}

func book_info(book *Books) {
	fmt.Println(book.title)
	book.title = "java语言"
}

func book_info2(book Books) {
	fmt.Println(book.title)
	book.title = "java语言"
}

func main() {
	var book = Books{"Go 语言", "www.baidu.com", "你懂的", 3}
	//book_info(&book)
	//fmt.Println(book.title)

	book_info2(book)
	fmt.Println(book.title)
}
